# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=mdds
pkgver=2.0.3
pkgrel=1
pkgdesc="Multi-dimensional data index algorithm"
url="https://gitlab.com/mdds/mdds"
arch="noarch"
license="MIT"
makedepends="boost-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://kohei.us/files/mdds/src/mdds-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -d 755 "$pkgdir"/usr/lib
	mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib/
}

sha512sums="
20d2b58a22990a71ab40b37e1bb730d8f2e53ac4cba9b77678c194dd60807f17271d087a1cc2a048a3ac7b1aeaa05fa79e5d28dda317fecbfef8ed8aec42759f  mdds-2.0.3.tar.bz2
"
